//
//  KKView.h
//  GCDDemo
//
//  Created by 程强 on 16/7/5.
//  Copyright © 2016年 程强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface KKView : UIView
- (instancetype)initWithBlock:(void(^)(KKView *view))block;
- (KKView *(^)(CGRect viewframe))viewFrame;
- (KKView *(^)(UIColor *color))viewBackgroundColor;
@end

@class KKLabel;
@interface KKLabel : UILabel

- (instancetype)initWithBlock:(void (^)(KKLabel *lbl))block;
- (KKLabel *(^)(CGRect laframe))laFrame;
- (KKLabel *(^)(NSString *text,UIColor *textColor,UIFont *font,NSTextAlignment alignment))laText;
- (KKLabel *(^)(CGFloat radius))laRadius;
@end

@interface KKButton : UIButton

typedef void(^ClickBlock)(UIButton *btn);
@property (copy, nonatomic) ClickBlock block;

- (instancetype)initWithBlock:(void(^)(KKButton *btn))bok;
- (KKButton *(^)(NSString *image))backgroundImage;
- (KKButton *(^)(NSString *image))selectedImage;
- (KKButton *(^)(NSString *title))btnTitle;
- (KKButton *(^)(UIColor *color))titleNormalColor;
- (KKButton *(^)(UIColor *color))titleSelectedlColor;
- (KKButton *(^)(CGRect frame))btnFrame;
- (KKButton *(^)(UIFont *font))btnFont;
- (void)clickEvent:(ClickBlock)click;
- (void)btnClick:(UIButton *)sender;
@end